package com.sinothk.fc.goodsStockRecord.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 进货单
 * @Author: Liangyt
 * @Date:   2022-09-21
 * @Version: V1.0
 */
@Data
@TableName("fc_goods_stock_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="fc_goods_stock_record对象", description="进货单")
public class GoodsStockRecordEntity implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**门店id*/
	@Excel(name = "门店id", width = 15)
    @ApiModelProperty(value = "门店id")
    private String storeId;
	/**库存ID*/
	@Excel(name = "库存ID", width = 15)
    @ApiModelProperty(value = "库存ID")
    private String stockId;
	/**状态:0正常1退货*/
	@Excel(name = "状态:0正常1退货", width = 15)
    @ApiModelProperty(value = "状态:0正常1退货")
    private Integer state;
	/**卖家ID*/
	@Excel(name = "卖家ID", width = 15)
    @ApiModelProperty(value = "卖家ID")
    private String sellerId;
    /**
     * 卖家名称
     */
    @Excel(name = "卖家名称", width = 15)
    @ApiModelProperty(value = "卖家名称")
    private String sellerName;
	/**卖家商标*/
	@Excel(name = "卖家商标", width = 15)
    @ApiModelProperty(value = "卖家商标")
    private String sellerLogo;
	/**卖家电话*/
	@Excel(name = "卖家电话", width = 15)
    @ApiModelProperty(value = "卖家电话")
    private String sellerPhone;
    /**编号*/
    @Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private java.lang.String goodsNo;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String goodsName;
	/**商品封面*/
	@Excel(name = "商品封面", width = 15)
    @ApiModelProperty(value = "商品封面")
    private String goodsCover;
//	/**进货单价*/
//	@Excel(name = "进货单价", width = 15)
//    @ApiModelProperty(value = "进货单价")
//    private Long goodsPrice;
    /**成本单价*/
    @Excel(name = "成本单价", width = 15)
    @ApiModelProperty(value = "成本单价")
    private Long goodsInPrice;
	/**进货量*/
	@Excel(name = "进货量", width = 15)
    @ApiModelProperty(value = "进货量")
    private Integer stockNum;
	/**进货小计*/
	@Excel(name = "进货小计", width = 15)
    @ApiModelProperty(value = "进货小计")
    private Long goodsAllPrice;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**规格*/
	@Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String cpGg;
	/**商品单位*/
	@Excel(name = "商品单位", width = 15)
    @ApiModelProperty(value = "商品单位")
    private String goodsUnit;
	/**生产日期*/
	@Excel(name = "生产日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "生产日期")
    private Date cpScrq;
	/**保质期*/
	@Excel(name = "保质期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "保质期")
    private Date cpBzq;
	/**操作人*/
	@Excel(name = "操作人", width = 15)
    @ApiModelProperty(value = "操作人")
    private String optBy;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**
     * 当天进货支出
     */
    @ApiModelProperty(value = "当天进货支出")
    @TableField(exist = false)
    private Long outcome;
}
